<?php
 if(isset($_SESSION['USER'])){
     $this->assign('user', $_SESSION['USER']);
 }

$URL= end(explode('/',$_SERVER['REQUEST_URI']));




if(isset($_SESSION['perURL']) && !empty($_SESSION['perURL'])){
	if(strcmp($URL,$_SESSION['currentURL'])!=0){
	$_SESSION['perURL'] = $_SESSION['currentURL'];
	$_SESSION['currentURL'] = $URL;
	}
	
}else{
	$_SESSION['perURL'] = $URL;
	$_SESSION['currentURL'] = $URL;
}


//print_r($_SESSION['perURL'].'<br/>');
//print_r($_SESSION['currentURL'].'<br/>');
?>